/*
* Copyright (C) 2010 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
*	
* This file is part of imsdroid Project (http://code.google.com/p/imsdroid)
*
* imsdroid is free software: you can redistribute it and/or modify it under the terms of 
* the GNU General Public License as published by the Free Software Foundation, either version 3 
* of the License, or (at your option) any later version.
*	
* imsdroid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
*	
* You should have received a copy of the GNU General Public License along 
* with this program; if not, write to the Free Software Foundation, Inc., 
* 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*
*/

package org.doubango.FrCall.Screens;

import java.util.ArrayList;

import org.doubango.FrCall.R;

import android.os.Bundle;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.Spinner;

public class ScreenFriendSearch  extends BaseScreen
{
	public static Spinner ageSpinner,areasSpinner;
	public ScreenFriendSearch() {
		super(SCREEN_TYPE.FRIEND_SEARCH_T, ScreenFriendSearch.class.getCanonicalName());
	}
	
	/* ===================== Activity ======================== */
	 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        setContentView(R.layout.screen_friend_search);
        ageSpinner = (Spinner) findViewById(R.id.screen_friend_search_by_Age_value);
        ArrayList<CharSequence> ageValue = new ArrayList<CharSequence>();
        for(int i =18;i<90;i++)
        {
        	ageValue.add(""+i);
        }
        ArrayAdapter<CharSequence> ageadapter = new ArrayAdapter<CharSequence>(this, android.R.layout.simple_spinner_item, ageValue);
        ageSpinner.setPrompt("请选择年龄");
        ageSpinner.setAdapter(ageadapter);
        areasSpinner = (Spinner) findViewById(R.id.screen_friend_search_by_City_value);
        areasSpinner.setPrompt("请选择城市");
	}

	 
	protected void onResume() {

		
		super.onResume();
	}
	
	@Override
	public void onBackPressed() {
		// TODO Auto-generated method stub
		super.onBackPressed();
	}
	 
	protected void onDestroy() {

		// remove event handler
		
		super.onDestroy();
	}
	
	 
	
	 
//	public boolean onContextItemSelected(MenuItem item) {
//		return computeConfiguration;
//		
//	}
	
}
